package apk.yoursms.download;

import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;

public class Parse {

    public static final String MAIN_URL = "http://starsapplications.org/api/";

    public static String init(JSONArray json, String tableName) {
	String sms = "";

	for (int i = 0; i < json.length(); i++) {
	    try {
		JSONObject obj = json.getJSONObject(0);
		sms += obj.getString("text");
	    } catch (JSONException e) {
		e.printStackTrace();
	    }
	}

	return sms;
    }       

}
